<template>
	<view class="main">
		<view class="conttitle" style="cursor: pointer;">
			<view style="height: 100%;">
				<view style="margin-top: 10px;" class="name"><span>剑魂</span><span>本人</span></view>
				<view style="margin-top: 20px;" class="phone">622*********0909</view>
			</view>
			<view style="margin-top: 20px;" class="mor">
				默认就诊人
			</view>
		</view>
		<view class="choose flex">
			<view class="flex1" :class="chooseindex==index?'choosed ':''" @click="chooseindex=index"
				v-for="(item,index) in taocanlist">
				{{item}}
			</view>
		</view>
		<view class="mainbody">
			<view class="section ali" @click="totaocan" v-for="(item,index) in taocanlist1[chooseindex]">
				<view class="avtor">

				</view>
				<view class="sectiontitle">
					<view class="secmmaintitle">
						{{item.name}}
					</view>
					<view class="sectionsubtitle">
						项目：一般检查/内科检查/
					</view>
					<view class="sectionsubtitle">
						/外科检查/血常规/尿常规
					</view>
				</view>
				<view class="price">
					￥1200.00
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	import {
		request
	} from '@/util/do.js'
	export default {
		data() {
			return {
				taocanlist: ['男性套餐', '女性套餐', '老年人套餐', '入职套餐'],
				chooseindex: 0,
				taocanlist1: []
			}
		},
		methods: {
			totaocan() {
				uni.navigateTo({
					url: '/query/page/Packagedetails/Packagedetails'
				})
			},
			sourcelist() {
				let _self = this
				request(
					"/taocanlist", {},
					'GET',
					function(res) {
						// console.log(res.data.data.XMLList);
						_self.taocanlist1 = res.data.data.XMLList
					})
			}

		},
		mounted() {

			this.sourcelist()






		}
	}
</script>
<style>
	/* 	page {
		background-color: #FFFAFA;
	}
	 */
	.main {
		width: 93%;
		margin: 0 auto;
	}

	.flex {
		display: flex;
	}

	.ali {
		display: flex;
		align-items: center;
	}

	.section {
		background-color: #fff;
		padding: 30rpx 0;
		border: 1rpx solid gainsboro;
	}

	.flex1 {
		flex: 1;
		text-align: center;
		border-radius: 4px;
		font-size: 12px;
		padding: 10rpx 0;
	}

	.choose {
		margin: 20rpx 0;
	}

	.choosed {
		background-color: rgba(0, 110, 255, 1);
		color: #fff;
	}

	.izpimg img {
		width: 10px;
		height: 10px;
		margin-right: 30px;
	}

	.server1 {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: #757575;
		height: 56px;
		line-height: 56px;
		border-bottom: 1px solid rgba(242, 242, 242, 1);
		font-size: 15px;
	}

	.conttitle {
		background-color: #f5f9ff;
		height: 180rpx;
		display: flex;
		font-weight: 200;
		border: 1px solid #f2f2f2;
		padding: 20px 10px;
		justify-content: space-between;
		margin-top: 15px;
		box-sizing: border-box;
	}

	.mor {
		font-family: 'PingFangSC-Light', 'PingFang SC Light', 'PingFang SC', sans-serif;
		font-weight: 200;
		font-style: normal;
		font-size: 12px;
	}

	.phone {
		font-weight: 200;
		font-style: normal;
		font-size: 12px;
		color: #AAAAAA;
	}

	.name span:nth-child(1) {
		font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
		font-weight: 400;
		font-style: normal;
		font-size: 15px;
		color: #555555;
	}

	.name span:nth-child(2) {
		margin-left: 5px;
		font-size: 12px;
		display: inline-block;
		width: 44px;
		height: 18px;
		padding: 2px;
		background-color: #e2edfe;
		text-align: center;
		line-height: 18px;
		border-radius: 10px;
		letter-spacing: 1px;
		color: #006EFF;
	}

	.avtor {
		background-color: rgba(0, 110, 255, 0.0980392156862745);
		border-radius: 8px;
		width: 120rpx;
		height: 139rpx;
		margin: 0 22rpx;
	}

	.secmmaintitle {
		font-weight: 400;
		font-style: normal;
		font-size: 15px;
		color: #555555;
	}

	.sectionsubtitle {

		font-weight: 200;
		font-style: normal;
		font-size: 12px;
		color: #AAAAAA;
	}

	.price {
		margin-left: auto;
		font-weight: 500;
		font-style: normal;
		font-size: 17px;
		color: #F46363;
	}
</style>